home *** CD-ROM | disk | FTP | other *** search
- /
- / Copyright (C) 1990-1992 Michael Davidson.
- / All rights reserved.
- /
- / Permission to use, copy, modify, and distribute this software
- / and its documentation for any purpose and without fee is hereby
- / granted, provided that the above copyright notice appear in all
- / copies and that both that copyright notice and this permission
- / notice appear in supporting documentation.
- /
- / This software is provided "as is" without express or implied warranty.
- /
-
- .text
- /
- / inb(unsigned port)
- /
- .globl inb
-
- inb:
- xorl %eax, %eax
- movl 4(%esp), %edx
- inb (%dx)
- ret
-
- /
- / inw(unsigned port)
- /
- .globl inw
-
- inw:
- xorl %eax, %eax
- movl 4(%esp), %edx
- inw (%dx)
- ret
-
- /
- / ind(unsigned port)
- /
- .globl ind
-
- ind:
- xorl %eax, %eax
- movl 4(%esp), %edx
- inl (%dx)
- ret
-
- /
- / outb(unsigned port, unsigned value)
- /
- .globl outb
-
- outb:
- movl 4(%esp), %edx
- movl 8(%esp), %eax
- outb (%dx)
- ret
-
- /
- / outw(unsigned port, unsigned value)
- /
- .globl outw
-
- outw:
- movl 4(%esp), %edx
- movl 8(%esp), %eax
- outw (%dx)
- ret
-
- /
- / outd(unsigned port, unsigned value)
- /
- .globl outd
-
- outd:
- movl 4(%esp), %edx
- movl 8(%esp), %eax
- outl (%dx)
- ret
-
-